package com.ricchieri.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Inheritance(strategy=InheritanceType.JOINED)
@Table(name="travel")
public class Travel extends BaseEntity {
	private static final long serialVersionUID = -5856422275643927165L;
	
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "meanPayment", nullable = true)
	private MeanPayment meanPayment;

	public MeanPayment getMeanPayment() {
		return meanPayment;
	}

	public void setMeanPayment(MeanPayment meanPayment) {
		this.meanPayment = meanPayment;
	}
	
}